export class EnergyMachine {
    name: string = ''
    max: number = 100
    now: number = 0
    power: number = 0
}

let energyMachineInfo = new Map<string, EnergyMachine>()
energyMachineInfo.set("风力涡轮机", Object.assign(new EnergyMachine(), {name: '风力涡轮机', max: 500, power: 300}))

let allEnergyMachineInfo = (): Array<EnergyMachine> => {
    let temp = []
    for (let e of energyMachineInfo.values()) {
        temp.push(Object.assign({}, e))
    }
    return temp
}

export default allEnergyMachineInfo